import java.io.*;

import javax.servlet.*;
import javax.servlet.http.*;

public class Hello2Servlet extends HttpServlet {
	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		response.setContentType("text/plain");
		byte[] bytes = "hello2".getBytes();
		OutputStream output = response.getOutputStream();
		output.write(bytes);
		output.flush();
		output.close();
		response.setContentLength(bytes.length);
		response.setStatus(200);
	}
}
